package ru.jexp.rcp.supply.viewer;

import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.jface.viewers.IDoubleClickListener;
import org.eclipse.jface.viewers.IStructuredSelection;

public abstract class JExpTreeDoubleClickListener implements
		IDoubleClickListener {

	@Override
	public void doubleClick(DoubleClickEvent event) {
		doubleClick(event, ((IStructuredSelection) event.getSelection())
				.getFirstElement());
	}

	public abstract void doubleClick(DoubleClickEvent event,
			Object selectElement);

}
